Skip to content

Conversation

@shawn-jung
Copy link
Contributor

to avoid divide-by-zero, we can add 1e-5 to 'count_for_this' variable.
(or add such condition at the end of the nested for-loop)
if count_for_this == 0:
count_for_this += 1e-5

to avoid divide-by-zero, we can add 1e-5 to 'count_for_this' variable. 
(or add such condition at the end of the nested for-loop)
if count_for_this == 0:
            count_for_this += 1e-5
@kartikay-bagla kartikay-bagla merged commit 0bcfd44 into practical-nlp:master May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants